package com.woniuxy.food.client.foodpicclient;

import com.woniuxy.food.client.result.FoodPicClientDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import result.Result;

import java.util.List;

@FeignClient(contextId = "FoodPicQueryClient",name = "food")
public interface FoodPicQueryClient {
    @GetMapping("/searchFoodPic")
    public Result<List<FoodPicClientDto>> searchFoodPic(@RequestParam("storeId")Integer storeId);

    @GetMapping("/searchFoodPicById")
    public Result<FoodPicClientDto> searchFoodPicById(@RequestParam("storeId")Integer storeId,@RequestParam("foodPicId") Integer foodPicId);
}
